// token的存、取、删
const HM_NEWS = 'heima_toutiao_token'

let saveToken = obj => {
  localStorage.setItem(HM_NEWS, JSON.stringify(obj))
}

let getToken = () => {
  return JSON.parse(localStorage.getItem(HM_NEWS))
}

let removetoken = () => {
  localStorage.removeItem(HM_NEWS)
}

export { saveToken, getToken, removetoken }
